<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
		<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/admin.css" rel="stylesheet" />
<script src="script/jquery-1.10.2.js"></script>
<script src="ckeditor/ckeditor.js"></script>
<script>
	
</script>
</head>
<body>
	<div id="page">
		<div id="header">
			<div id="corpTitle">美食前线后台</div>
			<div id="rightTitle">美食管理</div>
		</div>
		<div id="main">
			<div id="nav">
				<div class="menu">
					<ul>
						<li>类别管理</li>
						<li>美食管理</li>
						<li>新闻管理</li>
						<li>留言管理</li>
						<li>用户管理</li>
					</ul>
				</div>
			</div>
			<div id="container">
				<form method="get" action="foodlistmanege">
				<input type="hidden" name="cid" value="${category.getId()}"/>
					美食分类： <select>
						<c:forEach var="category" items="${categorylist }">
							<option value="${category.getId() }">${category.getName() }</option>
						</c:forEach>
					</select> 
					美食名称： <input type="text" name="title" value="${title}"/>
					<button type="submit">查询</button>
					<a href="juggaddfood?id=0">添加新美食</a>
				</form>
				<hr />
				<table class="data-list">
					<tr>
						<th>美食名称</th>
						<th>英文名称</th>
						<th>美食类别</th>
						<th>操作</th>
					</tr>
					<c:forEach var="foodlist" items="${foodsearchlist }">
					<tr>
						<td>${foodlist.getChineseName()}</td>
						<td>${foodlist.getEnglishName()}</td>
						<td>${foodlist.getCategoryId()}</td>
						<td><a href="juggaddfood?id=${foodlist.getId()}">编辑</a> <a href="#">删除</a></td>
					</tr>
					</c:forEach>
				</table>
			</div>
			<div class="clear"></div>
		</div>


		<div id="footer">
			<p>
				<a>首页|</a><a>关于我们|</a><a>联系我们</a>
			</p>
			<p>@©2016 网站样板-餐饮 版权所有</p>
			<p>技术支持：广州广力 | 手机版 | 管理登录</p>
		</div>




	</div>

</body>
</html>